#pragma once
#include <map>
#include <SFML/Graphics/Color.hpp>

sf::Color blendColors(const sf::Color& firstColor, const sf::Color& secondColor, float interpolation);

class ColorGradient
{
public:
    ColorGradient();
    sf::Color& operator[] (float position);
    sf::Color sampleColor(float position) const;
private:
    std::map<float, sf::Color> colors;
};
